﻿//PlazaOrdersDerivativeColumns.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Plaza.Metadata
{
	using System;

	/// <summary>
	/// Колонки таблицы, содержащей информацию о заявках.
	/// </summary>
	public abstract class PlazaOrdersDerivativeColumns : PlazaBaseOrdersColumns
	{
		internal PlazaOrdersDerivativeColumns(string tableId)
			: base(tableId)
		{
			ClientCode = new PlazaColumn(TableId, "client_code", "c7");
			Comment = new PlazaColumn(TableId, "comment", "c20");
			Hedge = new PlazaColumn(TableId, "hedge", typeof(bool), false);
			Trust = new PlazaColumn(TableId, "trust", typeof(bool), false);
			ExtId = new PlazaColumn(TableId, "ext_id", typeof(int));
			LoginFrom = new PlazaColumn(TableId, "login_from", "c20", false);
			BrokerTo = new PlazaColumn(TableId, "broker_to", "c7", false);
			BrokerToRts = new PlazaColumn(TableId, "broker_to_rts", "c7", false);
			DateOrderExpiration = new PlazaColumn(TableId, "date_exp", typeof(DateTime));
			OrderId1 = new PlazaColumn(TableId, "id_ord1", typeof(long), false);
			BrokerFromRts = new PlazaColumn(TableId, "broker_from_rts", "c7", false);
		}

		/// <summary>
		/// Код клиента.
		/// </summary>
		public readonly PlazaColumn ClientCode;

		/// <summary>
		/// Комментарий трейдера.
		/// </summary>
		public readonly PlazaColumn Comment;

		/// <summary>
		/// Признак хеджевой заявки.
		/// </summary>
		public readonly PlazaColumn Hedge;

		/// <summary>
		/// Признак заявки доверительного управления.
		/// </summary>
		public readonly PlazaColumn Trust;

		/// <summary>
		/// Внешний номер.
		/// </summary>
		public readonly PlazaColumn ExtId;

		/// <summary>
		/// Логин пользователя, поставившего заявку.
		/// </summary>
		public readonly PlazaColumn LoginFrom;

		/// <summary>
		/// Код FORTS фирмы-адресата внесистемной заявки.
		/// </summary>
		public readonly PlazaColumn BrokerTo;

		/// <summary>
		/// Код RTS фирмы-адресата внесистемной заявки.
		/// </summary>
		public readonly PlazaColumn BrokerToRts;

		/// <summary>
		/// Дата истечения заявки.
		/// </summary>
		public readonly PlazaColumn DateOrderExpiration;

		/// <summary>
		/// Номер первой заявки.
		/// </summary>
		public readonly PlazaColumn OrderId1;

		/// <summary>
		/// Код РТС клиента - владельца заявки.
		/// </summary>
		public readonly PlazaColumn BrokerFromRts;
	}
}
